//配置结构
const { Schema, model } = require('mongoose');
const adminsSchema = new Schema({
    account: String,
    password: String,
    power: {
        type: Number,
        default: 2
    },
    state: {
        type: Number,
        default: 1
    },
}, { versionKey: false })
//配置模型
const adminsModel = model('adminsModel', adminsSchema, 'admins');

//暴露  adminsModel
module.exports.adminsModel = adminsModel;